package com.yc.demo.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "demo")
@Component
@Data
public class DemoProperties {
    boolean enable;
    String name;
}
